<?php include_once 'header.php'; ?>

<style>
    body{background:#fff;}
    body .navigator {
        border-top: 1px solid #272727;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        overflow-x: auto;
        background: #1f1f1f;
    }
    body .navigator a {
        float: left;
        color: #7f8287;
        width: 25%;
        text-align: center;
        font-size: 14px;
        height: 46px;
        line-height: 46px;
    }
    body .navigator a.active {
        background: #2d2d2d;
        color: #fff;
    }
    body .navigator a:active {
        background: #252525;
        color: #eee;
    }
    body .myorder{
        display: none;
        position: fixed;
        z-index: 10000;
        left: 25%;
        width: 25%;
        bottom: 46px;
        border: 1px solid #272727;
        background: #1f1f1f;
        height: 92px;
    }
    body .myorder span{
        display: block;
        height: 46px;
        line-height: 46px;
        background: #1f1f1f;
        color: #fff;
        text-align: center;
    }
    body .myorder span a{
        text-decoration: none;
        color:#fff;
    }
    .weui_cells:after{border:0;}

</style>
<script>
    var wAlert = window.alert;
    window.alert = function (message) {
        try {
            var iframe = document.createElement("IFRAME");
            iframe.style.display = "none";
            iframe.setAttribute("src", 'data:text/plain,');
            document.documentElement.appendChild(iframe);
            var alertFrame = window.frames[0];
            var iwindow = alertFrame.window;
            if (iwindow == undefined) {
                iwindow = alertFrame.contentWindow;
            }
            iwindow.alert(message);
            iframe.parentNode.removeChild(iframe);
        }
        catch (exc) {
            return wAlert(message);
        }
    }
</script>
<body>

<div class="weui_cells" style="background:#fff; color:#000;margin-top:0;">
    <div class="weui_cell">
        <div class="weui_cell_bd weui_cell_primary" >
            <p><h4><?php echo  $announce -> body_title;?></h4></p>
        </div>
        <div class="weui_cell_ft" ></div>
    </div>

        <div class="weui_cell">
            <div class="weui_cell_bd weui_cell_primary" >
                <p><?php echo $announce->body_content; ?></p>
            </div>
            <div class="weui_cell_ft" ></div>
        </div>

</div>




<div class="navigator clearfix">
    <a class="" href="/objects" class="active">商品价格</a>
    <a class="" href="javascript:void(0)" onclick="click_myorder()">我的订单</a>
    <a class="" href="/account">我的账户</a>
    <a class="active" href="/announce">公告资讯</a>
</div>
<div class="myorder" id="myorder">
    <span><a href="/orders/hold"> 在线订单</a></span>
    <span><a href="/orders/history">历史订单</a></span>
</div>

<script>
    var is_order_show = false;
    function click_myorder(){

        if(!is_order_show){

            is_order_show = true;
            $(this).attr("class","active");
            $("#myorder").show();
        }else{
            is_order_show = false;
            $(this).attr("class","");
            $("#myorder").hide();;
        }
    }

</script>

<?php include_once 'footer.php'; ?>
